package com.heima.feign.fallback;

import com.heima.feign.api.statics.StaticFeignClient;
import com.heima.model.aritlce.dto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class StaticFeignClientFallback implements StaticFeignClient {

    @Override
    public ResponseResult<String> generateHtml(Long id, ArticleDto dto) {
        log.error("生成静态详情页面失败,文章id:{}", id);
        return ResponseResult.error(AppHttpCodeEnum.SERVER_ERROR);
    }
}